home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / ASSEMBLE / H235A.ZIP / ASM_0_M.ZIP / COPYSAVE.COR < prev    next >
Text File  |  1987-03-19  |  1KB  |  31 lines

  1. A "bug" in COPYSAFE.COM (Programming/Utilities Volume 6, Number 6) resulted
  2. in the program failing to warn the user of the existence of a same-named
  3. target file when he was renaming a source file at the same time he was
  4. copying it.  If you are working with COPYSAFE.ASM, the fix is easy:
  5.  
  6. Old Version:
  7. CK_TARGET:     MOV    DI,PARA2_START         ;Is second a path request?
  8.                CALL   CK_PATH
  9.                JC     CK_EXIST               ;If no, check exist, else append
  10.  
  11.  
  12. New Version:
  13. CK_TARGET:     MOV    DI,PARA2_START         ;Is second a path request?
  14.                CALL   CK_PATH
  15.                JNC    APPEND                 ;If path, append the filename.
  16.                CALL   CK_GLOBAL
  17.                CMP    GLOBAL_FLAG,1
  18.                JZ     CK_EXIST
  19.                CALL   MATCH                  ;Else, it is a renamed file.
  20.                JMP    EXIT                   ;Display and exit.
  21.  
  22. You can either make these changes manually and reassemble, or you can
  23. download the corrected COPYSAFE.ASM entirely.
  24.  
  25. Unfortunately, the above changes ripple through hundreds of instructions
  26. in the BASIC listing, so if you are creating COPYSAFE.COM by running
  27. COPYSAFE.BAS there is no alternative to downloading the entire corrected
  28. COPYSAFE.BAS listing and running it.
  29.  
  30. Fully corrected .COM, .ASM, and .BAS files for COPYSAFE are now on PC-IRS.
  31.